package com.tianqu.tms.entity;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.core.util.DateUtil;
import com.tianqu.tms.core.util.StringUtil;
import com.tianqu.tms.dao.AucCarInfoDao;
import com.tianqu.tms.dao.CarDao;
import com.tianqu.tms.dao.ProxyCarInfoDao;
import com.tianqu.tms.dao.TmsDao;
import com.tianqu.tms.dao.ViewListDao;
import com.tianqu.tms.dto.BaseCarInfoDto;
import com.tianqu.tms.dto.MarketCarInfoDto;
import com.tianqu.tms.dto.ProxyCarInfoDto;

/**
 * 
 * 待办管理entity
 * 
 * @author Administrator
 * 
 */
public class ProxyCarInfo extends ViewListManager {

	private static final long serialVersionUID = -3466691442088003911L;

	private int id = 0; // 车辆id
	private String serial = ""; // 二手车流水号
	private String vin = ""; // VIN码
	private String engine = ""; // 发动机号
	private String licensePlate = ""; // 车牌号码
	private int price=0; // 预售价格
	private int proxyPrice; // 代办收费金额
	private int color = 0; // 颜色， 0:全部颜色都包括 1:黑 2:白 3:灰 4:蓝 5:银 6:红 7:金 8:棕 9:绿
							// 10:黄 11:紫 12:橙
	private String vendorCode = ""; // 车辆厂牌代码 【此数据在检测中心填写，根据行驶证上内容记录】
	private String modelCode = ""; // 车辆型号代码 【此数据在检测中心填写，根据行驶证上内容记录】
	private String regDate = ""; // 登记日期/上牌时间
	private String yearCarefulPeriod = ""; // 年审期限（年检时间）
	private int displacement; // 发动机排量
	private String jqx = ""; // 交强险日期
	private int carUse = -1; // 使用性质
	private int carType = -1; // 车辆类型：0:轿车、1:微型轿车、2:小型轿车、3:小型客车（轿车）、4:小型越野车、5:出租车、6:租赁、7:旅游客运（公交客运）、
	// 8:小型普通客车、9:微型普通客车、10:中型普通客车、11:大型普通客车、12:农用车、13:轻型普通货车、14:小型货车（栏板）、
	// 15:轻型厢式货车、16:中型普通货车、17:重型自卸货车、18:大吊车、19:大型卧铺客车 20:特种车
	private int attribute; // 附件属性
	private int gearbox = -1; // 变速箱类型：0:MT 1:AT 2:A/MT 3:无极变速 4:双离合
	private int mileage; // 行驶里程，单位：万公里
	private String sendCardDate = ""; // 行驶证发证日期
	private int cardType = -1; // 号牌种类 0：小型车 1：大型车
	private String registerCardNo = ""; // 登级证书编号
	private int countryStyle = -1; // 国别 -1 未知 0:国产 1：进口
	private int fuelType = -1; // 燃料种类 1:汽油 2:柴油 3:油电混合 4:油气混合
	private String companyContactPerson = ""; // 公司联系人
	private String carOwnerIdCardNo = ""; // 车主身份证号
	private String brandId;// 品牌id
	private String carStyleId;// 款式id
	private String vendorId;// 品牌
	private String memberId;// 商户id
	private int loadquality; // 核定载质量
	private int passenger; // 核定载客
	private int ownerType = -1; // 车主类别 1:个人 2:企业
	private String ownerPhone; // 车主手机号码
	private String ownerAddress; // 车主住址
	private String ownerOrgNo; // 车主组织机构代码证号
	private String carOwner = ""; // 车主姓名
	private String carOwnerIdCardNoOld; // 原车主身份证号（旧）
	private String ownerAddressOld;// 原车主住址(旧)
	private int newOwnerType;// 新车主类别
	private String newOwnerPhone;// 新车主手机号码
	private String newOwnerAddress;// 新车主住址
	private String newOwnerOrgNo;// 新车主组织机构代码证号
	private String agentName;// 车主代理人姓名
	private String agentOwnerIdCardNo;// 车主代理人身份证号
	private String agentAddress;// 车主代理人住址
	private String agentPhone;// 车主代理人电话
	private int status;// 1：未受理 2：已受理 3：未交费 4:以缴费 5.超期未缴费 6：超期已缴费 7:过期未交费
						// 8.过期已交费
	// 9:转入过户 此处5~8状态是由解锁按钮来控制的 9.是由过户处理的
	private Date acceptedTime;// 应用该时间区分缴费状态 ：正常受理该时间与系统录入时间相同 受理日期
	private int insertUserId;// 受理人
	private Date updateTime;// 更新时间
	private int updateUserId;// 更新用户

	private String moveOutProvince;// 迁出省

	private String moveOutCity;// 迁出市
	private String newCarOwner;// 新车主姓名
	private int num = 0;// 列号
	private int cssFlag = 0;// 样式

	private int listStatus;// 待办车辆在列表中的几个状态 1.待办未受理 2.已受理 3.待办已缴费 4.待办超期 5.转入过户
	private String carTypeS;// 车辆类型
	private String statusS;// 状态

	private int transferType = 1;// 申请事项
	private String carMarketIn;// 转入车辆管理所
	private String taxNo;// 增值税完税证号
	private String newAgentName;// 新车主代理人姓名
	private String newAgentOwnerIdCardNo;// 新车主代理人身份证号
	private String newAgentAddress;// 新车主代理人住址
	private String newAgentPhone;// 新车主代理人电话
	private String zipCode;// 新车主邮编
	private String mailAddress;// 新车主邮寄地址
	private String paymentPeople;// 交款人
	private int gainType;// 获得方式
	private String newcarOwnerIdCardNo;//新车主身份证号
	private int inputUserId;// 受理录入ID
	
	private int amount;//缴费金额
	
	
	/**
	 * 
	 */

	public static ProxyCarInfo getInstance() {
		ProxyCarInfo proxy = new ProxyCarInfo();
		proxy.setExisting(false);
		return proxy;
	}

	/**
	 * 
	 * 查询过期待办车辆信息
	 * 
	 * 有返回1，无返回0
	 * 
	 * @throws TmsDaoException
	 */
	public int findPassProxyCarInfoBySerial(String serial, String fourMonth,
			int limitStatus) throws TmsDaoException {

		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);

		int bsflag = mDao.findPassProxyCarInfoBySerial(serial, fourMonth,
				limitStatus);

		return bsflag;
	}

	/**
	 * 
	 * 查询车辆ID是否存在
	 * 
	 * @throws TmsDaoException
	 */
	public int findProxyCarInfoExistBySerial(String serial)
			throws TmsDaoException {
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);

		int bsflag = mDao.findProxyCarInfoExistBySerial(serial);

		return bsflag;
	}

	/**
	 * 根据vin码到tms_market_car_info中去查信息
	 * 
	 * @param vin
	 * @return
	 * @throws TmsDaoException
	 */
	public ProxyCarInfo findFromMarketByVin(String vin) throws TmsDaoException {
		ProxyCarInfo proxyCarInfo = ProxyCarInfo.getInstance();
		CarDao carDao = (CarDao) TmsDao.getInstance(TmsDao.TMS_CAR);
		MarketCarInfoDto dto = (MarketCarInfoDto) carDao.findCarByVin(vin);
		if(dto!=null) proxyCarInfo.marketDtoToEntity(dto);//modify by huangwei 20150723
		return proxyCarInfo;
	}

	/**
	 * 根据vin码到base表中去查信息
	 * 
	 * @return
	 * @throws TmsDaoException
	 */
	public ProxyCarInfo findFromBaseByVin(String vin) throws TmsDaoException {
		ProxyCarInfo proxyCarInfo = ProxyCarInfo.getInstance();
		AucCarInfoDao dao = (AucCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_BASE_CAR_INFO);
		BaseCarInfoDto dto = (BaseCarInfoDto) dao.getAucCar(vin);
		proxyCarInfo.baseDtoToEntity(dto);
		return proxyCarInfo;
	}

	/**
	 * insert操作
	 * 
	 * @param proxyCarInfo
	 * @throws TmsDaoException
	 */
	public void insertProxyCar(ProxyCarInfo proxyCarInfo)
			throws TmsDaoException {
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);
		ProxyCarInfoDto proxyCarInfoDto = new ProxyCarInfoDto();
		proxyCarInfoDto = entityToDto(proxyCarInfo);
		mDao.insertProxyCarInfo(proxyCarInfoDto);
	}

	/**
	 * 车辆查询
	 * 
	 * @param memberId
	 * @param serial
	 * @param licensePlate
	 * @param timeA
	 * @param status
	 * @param timeB
	 * @return
	 * @throws TmsDaoException
	 * @throws ParseException
	 */
	@SuppressWarnings("unchecked")
	public List findAllProxyCar(String memberId, String serial,
			String licensePlate, String timeA, int status, String timeB)
			throws TmsDaoException, ParseException {
		List proxyCarInfoList = new ArrayList();
		List<ProxyCarInfoDto> dtoList = new ArrayList<ProxyCarInfoDto>();
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO,getPageNo(), getMaxIndex(), getSortKey(), isAsc());
		ViewListDao idao = (ViewListDao) TmsDao.getViewListDao((TmsDao) mDao,
				TmsDao.TMS_PROXY_CAR_INFO);
		
		dtoList = mDao.findProxyCarInfoAll(memberId, serial, licensePlate,
				timeA, status, timeB);
		int i = 1;
		String twoMonth = DateUtil.getBeforeMonth(-2);// 两个月后日期
		for (ProxyCarInfoDto dto : dtoList) {
			ProxyCarInfo entity = new ProxyCarInfo();
			Codes code = Codes.getInstance();
			entity.setLicensePlate(dto.getLicensePlate());
			entity.setSerial(dto.getSerial());
			entity.setModelCode(dto.getModelCode());
			entity.setVendorCode(dto.getVendorCode());
			// 车辆类型
			entity.setCarTypeS(code.getItemValueByItemIdAndItemCode(
					Codes.VEHICLE_TYPE, dto.getCarType()));

			if (dto.getStatus() == 8) {
				entity.setListStatus(5);// 装入过户
			}
			if (dto.getStatus() != 8 && dto.getStatus() > 3) {
				entity.setListStatus(4);// 过期或者超期
			}
			if (dto.getStatus() < 4 && dto.getStatus() > 1) {
				
				String acceptTm = DateUtil
						.DateToString11(dto.getAcceptedTime());

				boolean flag = DateUtil.compareStringTime(acceptTm, twoMonth);// 受理日期比较
				if (flag) {
					
					if (dto.getStatus() == 2) {
						entity.setListStatus(2);
					}
					if (dto.getStatus() == 3) {
						entity.setListStatus(3);
					}
				} else {
					entity.setListStatus(4);// 大于两个月超期
				}
			}
			if(dto.getStatus() == 1){
				entity.setListStatus(1);
			}

			entity.setAcceptedTime(dto.getAcceptedTime());
			entity.setCarOwner(dto.getCarOwner());
			if (StringUtil.isNullOrBlank(dto.getNewCarOwner())) {
				entity.setNewCarOwner("-");
			} else {
				entity.setNewCarOwner(dto.getNewCarOwner());
			}
			entity.setRegDate(dto.getRegDate());
			if (entity.getListStatus() == 1) {
				entity.setStatusS("未受理");
			}
			if (entity.getListStatus() == 2) {
				entity.setStatusS("已受理");
			}
			if (entity.getListStatus() == 3) {
				entity.setStatusS("待办已缴费");
			}
			if (entity.getListStatus() == 4) {
				entity.setStatusS("待办超期");
				
			}
			if (entity.getListStatus() == 5) {
				entity.setStatusS("转入过户");
			}

			if (entity.getListStatus() == 4) {
				if(i % 2 == 0){
					entity.setCssFlag(3);
				}else{
					entity.setCssFlag(4);
				}
				
			} else {
				if (i % 2 == 0) {
					entity.setCssFlag(2);
				} else {
					entity.setCssFlag(1);
				}
			}
			i=i+(getPageNo()-1)*10;	
			entity.setNum(i);
			proxyCarInfoList.add(entity);
			i++;
		}
		setPagingInfo(idao);
		return proxyCarInfoList;
	}

	/**
	 * 根据流水号载入待办车辆信息
	 * 
	 * @param serial
	 * @return
	 * @throws TmsDaoException
	 */
	public ProxyCarInfo findProxyCarBySerial(String serial)
			throws TmsDaoException {
		ProxyCarInfo proxyCarInfo = ProxyCarInfo.getInstance();
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);
		ProxyCarInfoDto dto = (ProxyCarInfoDto) mDao
				.findProxyCarBySerial(serial);
		proxyCarInfo.dtoToEntity(dto);
		return proxyCarInfo;
	}

	/**
	 * 
	 * 管理员根据车辆ID查询待办车辆信息（未缴费）
	 * 
	 * @throws TmsDaoException
	 */
	public ProxyCarInfo findProxyCarInfoBySerial(String serial)
			throws TmsDaoException {
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);
		ProxyCarInfoDto dto = (ProxyCarInfoDto) mDao
				.findProxyCarInfoBySerial(serial);
		ProxyCarInfo proxyCarInfo = new ProxyCarInfo();
		proxyCarInfo = proxyCarInfo.setEntityFromDtoAdmin(proxyCarInfo, dto);
		return proxyCarInfo;
	}

	private ProxyCarInfo setEntityFromDtoAdmin(ProxyCarInfo entity,
			ProxyCarInfoDto dto) {
		
		entity.setSerial(dto.getSerial());
		entity.setAcceptedTime(dto.getAcceptedTime());
		entity.setStatus(dto.getStatus());
		entity.setGearbox(dto.getGearbox());
		entity.setDisplacement(dto.getDisplacement());
		entity.setLicensePlate(dto.getLicensePlate());
		entity.setVin(dto.getVin());
		entity.setVendorCode(dto.getVendorCode());
		entity.setModelCode(dto.getModelCode());
		entity.setCarType(dto.getCarType());
		entity.setEngine(dto.getEngine());
		entity.setColor(dto.getColor());
		entity.setCountryStyle(dto.getCountryStyle());
		entity.setFuelType(dto.getFuelType());
		entity.setLoadquality(dto.getLoadquality());
		entity.setPassenger(dto.getPassenger());
		entity.setMileage(dto.getMileage());
		entity.setCarUse(dto.getCarUse());
		entity.setCardType(dto.getCardType());
		entity.setYearCarefulPeriod(dto.getYearCarefulPeriod());
		entity.setJqx(dto.getJqx());
		entity.setRegisterCardNo(dto.getRegisterCardNo());
		entity.setRegDate(dto.getRegDate());
		entity.setSendCardDate(dto.getSendCardDate());
		entity.setOwnerType(dto.getOwnerType());
		entity.setCarOwner(dto.getCarOwner());
		entity.setCarOwnerIdCardNo(dto.getCarOwnerIdCardNo());
		entity.setOwnerOrgNo(dto.getOwnerOrgNo());
		entity.setOwnerAddress(dto.getOwnerAddress());
		entity.setOwnerPhone(dto.getOwnerPhone());
		entity.setAgentName(dto.getAgentName());
		entity.setAgentOwnerIdCardNo(dto.getAgentOwnerIdCardNo());
		entity.setAgentAddress(dto.getAgentAddress());
		entity.setAgentPhone(dto.getAgentPhone());
		entity.setCarOwnerIdCardNoOld(dto.getCarOwnerIdCardNoOld());
		entity.setOwnerAddressOld(dto.getOwnerAddressOld());
		entity.setMoveOutProvince(dto.getMoveOutProvince());
		entity.setMoveOutCity(dto.getMoveOutCity());
		entity.setMemberId(dto.getMemberId());
		entity.setBrandId(dto.getBrandId());
		entity.setCarStyleId(dto.getCarStyleId());
		entity.setVendorId(dto.getVendorId());
		entity.setInsertUserId(dto.getInsertUserId());

		return entity;

	}

	/**
	 * 根据流水号，更新待办车辆信息
	 * 
	 * @param proxyCarInfo
	 * @throws TmsDaoException
	 */
	public void updateProxyCarBySerial(ProxyCarInfo proxyCarInfo)
			throws TmsDaoException {
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);
		ProxyCarInfoDto dto = entityToDto(proxyCarInfo);
		mDao.updateProxyCarBySerial(dto);
	}
	
	
	/**
	 * 根据流水号，更新待办车辆信息(已缴费)
	 * @param proxyCarInfo
	 * @throws TmsDaoException
	 */
	public void updateProxyCarPaidBySerial(ProxyCarInfo proxyCarInfo)
			throws TmsDaoException {
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);
		ProxyCarInfoDto dto = entityToDto(proxyCarInfo);
		mDao.updateProxyCarPaidBySerial(dto);
} 

	

	/**
	 * marketCarInfoDto -> entity
	 * 
	 * @param dto
	 */
	private void marketDtoToEntity(MarketCarInfoDto dto) {
		this.setVendorId(dto.getVendorId());
		this.setBrandId(dto.getBrandId());
		this.setCarStyleId(dto.getCarStyleId());
		this.setCardType(dto.getCardType());
		this.setLicensePlate(dto.getLicensePlate());
		this.setCarOwner(dto.getCarOwner());
		this.setCarOwnerIdCardNo(dto.getCarOwnerIdCardNo());
		this.setCarType(dto.getCarType());
		this.setCarUse(dto.getCarUse());
		this.setColor(dto.getColor());
		this.setCompanyContactPerson(dto.getCompanyContactPerson());
		this.setCountryStyle(dto.getCountryStyle());
		this.setEngine(dto.getEngine());
		this.setFuelType(dto.getFuelType());
		this.setJqx(dto.getJqx());
		this.setLoadquality(dto.getLoadquality());
		this.setMemberId(String.valueOf(dto.getMemberId()));
		this.setMileage(dto.getMileage());
		this.setModelCode(dto.getModelCode());
		this.setOwnerAddress(dto.getOwnerAddress());
		this.setOwnerOrgNo(dto.getOwnerOrgNo());
		this.setOwnerPhone(dto.getOwnerPhone());
		this.setOwnerType(dto.getOwnerType());
		this.setPassenger(dto.getPassenger());
		this.setPrice((int) dto.getPrice()); // 价格double->int
		this.setRegDate(dto.getRegDate());
		this.setRegisterCardNo(dto.getRegisterCardNo());
		this.setSendCardDate(dto.getSendCardDate());
		this.setSerial(dto.getSerial());
		this.setUpdateTime(dto.getUpdateTime());
		this.setUpdateUserId(dto.getUpdateUserId());
		this.setVendorCode(dto.getVendorCode());
		this.setVin(dto.getVin());
		this.setYearCarefulPeriod(dto.getYearCarefulPeriod());
		this.setGearbox(dto.getGearbox());
		this.setDisplacement(dto.getDisplacement());
	}

	/**
	 * baseCarInfoDto -> entity
	 * 
	 * @param dto
	 */
	private void baseDtoToEntity(BaseCarInfoDto dto) {
		this.setVendorId(dto.getVendorId());
		this.setBrandId(dto.getBrandId());
		this.setCarStyleId(dto.getCarStyleId());
		this.setCardType(dto.getCardType());
		this.setLicensePlate(dto.getLicensePlate());
		this.setCarOwner(dto.getCarOwner());
		this.setCarOwnerIdCardNo(dto.getCarOwnerIdCardNo());
		this.setCarType(dto.getCarType());
		this.setCarUse(dto.getCarUse());
		this.setColor(dto.getColor());
		this.setCountryStyle(dto.getCountryStyle());
		this.setEngine(dto.getEngine());
		this.setFuelType(dto.getFuelType());
		this.setJqx(dto.getJqx());
		this.setLoadquality(dto.getLoadquality());
		this.setModelCode(dto.getModelCode());
		this.setOwnerAddress(dto.getOwnerAddress());
		this.setOwnerOrgNo(dto.getOwnerOrgNo());
		this.setOwnerPhone(dto.getOwnerPhone());
		this.setOwnerType(dto.getOwnerType());
		this.setPassenger(dto.getPassenger());
		this.setRegDate(dto.getRegDate());
		this.setRegisterCardNo(dto.getRegisterCardNo());
		this.setSendCardDate(dto.getSendCardDate());
		this.setSerial(dto.getSerial());
		this.setVendorCode(dto.getVendorCode());
		this.setVin(dto.getVin());
		this.setYearCarefulPeriod(dto.getYearCarefulPeriod());
		this.setGearbox(dto.getGearbox());
		this.setDisplacement(dto.getDisplacement());
	}

	/**
	 * entity -> ProxyCarInfoDto
	 * 
	 * @param proxyCarInfo
	 * @return
	 */
	private ProxyCarInfoDto entityToDto(ProxyCarInfo proxyCarInfo) {
		ProxyCarInfoDto dto = new ProxyCarInfoDto();
		dto.setSerial(proxyCarInfo.getSerial());
		dto.setLicensePlate(proxyCarInfo.getLicensePlate());
		dto.setVendorCode(proxyCarInfo.getVendorCode());
		dto.setModelCode(proxyCarInfo.getModelCode());
		dto.setEngine(proxyCarInfo.getEngine());
		dto.setLoadquality(proxyCarInfo.getLoadquality());
		dto.setPassenger(proxyCarInfo.getPassenger());
		dto.setMileage(proxyCarInfo.getMileage());
		dto.setYearCarefulPeriod(proxyCarInfo.getYearCarefulPeriod());
		dto.setJqx(proxyCarInfo.getJqx());
		dto.setRegisterCardNo(proxyCarInfo.getRegisterCardNo());
		dto.setRegDate(proxyCarInfo.getRegDate());
		dto.setSendCardDate(proxyCarInfo.getSendCardDate());
		dto.setCarOwner(proxyCarInfo.getCarOwner());
		dto.setCarOwnerIdCardNo(proxyCarInfo.getCarOwnerIdCardNo());
		dto.setOwnerOrgNo(proxyCarInfo.getOwnerOrgNo());
		dto.setOwnerAddress(proxyCarInfo.getOwnerAddress());
		dto.setOwnerPhone(proxyCarInfo.getOwnerPhone());
		dto.setAgentName(proxyCarInfo.getAgentName());
		dto.setAgentAddress(proxyCarInfo.getAgentAddress());
		dto.setAgentOwnerIdCardNo(proxyCarInfo.getAgentOwnerIdCardNo());
		dto.setAgentPhone(proxyCarInfo.getAgentPhone());
		dto.setPrice(proxyCarInfo.getPrice());
		dto.setVendorId(proxyCarInfo.getVendorId());
		dto.setBrandId(proxyCarInfo.getBrandId());
		dto.setCarStyleId(proxyCarInfo.getCarStyleId());
		dto.setCardType(proxyCarInfo.getCardType());
		dto.setCarType(proxyCarInfo.getCarType());
		dto.setCarUse(proxyCarInfo.getCarUse());
		dto.setColor(proxyCarInfo.getColor());
		dto.setCountryStyle(proxyCarInfo.getCountryStyle());
		dto.setDisplacement(proxyCarInfo.getDisplacement());
		dto.setGearbox(proxyCarInfo.getGearbox());
		dto.setFuelType(proxyCarInfo.getFuelType());
		dto.setOwnerType(proxyCarInfo.getOwnerType());
		dto.setMemberId(proxyCarInfo.getMemberId());
		dto.setVin(proxyCarInfo.getVin());
		dto.setSerial(proxyCarInfo.getSerial());
		dto.setStatus(proxyCarInfo.getStatus());
		dto.setUpdateUserId(proxyCarInfo.getUpdateUserId());

		// 另外添加的部分
		dto.setCompanyContactPerson(proxyCarInfo.getCompanyContactPerson());
		dto.setCarOwnerIdCardNoOld(proxyCarInfo.getCarOwnerIdCardNoOld());
		dto.setOwnerAddressOld(proxyCarInfo.getOwnerAddressOld());
		dto.setMoveOutProvince(proxyCarInfo.getMoveOutProvince());
		dto.setMoveOutCity(proxyCarInfo.getMoveOutCity());

		dto.setCarMarketIn(proxyCarInfo.getCarMarketIn());	
		dto.setTaxNo(proxyCarInfo.getTaxNo());
		dto.setPaymentPeople(proxyCarInfo.getPaymentPeople());
		dto.setNewAgentAddress(proxyCarInfo.getNewAgentAddress());
		dto.setNewAgentName(proxyCarInfo.getNewAgentName());
		dto.setNewAgentOwnerIdCardNo(proxyCarInfo.getNewAgentOwnerIdCardNo());
		dto.setNewAgentPhone(proxyCarInfo.getNewAgentPhone());
		dto.setNewOwnerAddress(proxyCarInfo.getNewOwnerAddress());
		dto.setNewOwnerOrgNo(proxyCarInfo.getNewOwnerOrgNo());
		dto.setNewOwnerPhone(proxyCarInfo.getNewOwnerPhone());
		dto.setNewcarOwnerIdCardNo(proxyCarInfo.getNewcarOwnerIdCardNo());
		dto.setZipCode(proxyCarInfo.getZipCode());
		dto.setMailAddress(proxyCarInfo.getMailAddress());
		dto.setNewOwnerType(proxyCarInfo.getNewOwnerType());
		dto.setGainType(proxyCarInfo.getGainType());
		dto.setTransferType(proxyCarInfo.getTransferType());
		dto.setNewCarOwner(proxyCarInfo.getNewCarOwner());
		return dto;
	}

	/**
	 * 操作员新增待办受理信息
	 * 
	 * 状态变为未缴费
	 * 
	 * @return
	 * @throws TmsDaoException
	 */
	public void insertProxyCarInfoByAdmin(ProxyCarInfo entity)
			throws TmsDaoException {
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao
				.getInstance(TmsDao.TMS_PROXY_CAR_INFO);
		ProxyCarInfoDto proxyCarInfoDto = new ProxyCarInfoDto();
		proxyCarInfoDto = entityToDto(entity);
		mDao.insertProxyCarInfoByAdmin(proxyCarInfoDto);
	}

	/**
	 * ProxyCarInfoDto -> entity
	 * 
	 * @param dto
	 */
	private void dtoToEntity(ProxyCarInfoDto dto) {
		this.setVendorId(dto.getVendorId());
		this.setBrandId(dto.getBrandId());
		this.setCarStyleId(dto.getCarStyleId());
		this.setDisplacement(dto.getDisplacement());
		this.setGearbox(dto.getGearbox());
		this.setLicensePlate(dto.getLicensePlate());
		this.setVin(dto.getVin());
		this.setVendorCode(dto.getVendorCode());
		this.setModelCode(dto.getModelCode());
		this.setCarType(dto.getCarType());
		this.setEngine(dto.getEngine());
		this.setColor(dto.getColor());
		this.setCountryStyle(dto.getCountryStyle());
		this.setFuelType(dto.getFuelType());
		this.setLoadquality(dto.getLoadquality());
		this.setCardType(dto.getCardType());
		this.setCarUse(dto.getCarUse());
		this.setCarOwner(dto.getCarOwner());
		this.setCarOwnerIdCardNo(dto.getCarOwnerIdCardNo());
		this.setJqx(dto.getJqx());
		this.setOwnerAddress(dto.getOwnerAddress());
		this.setOwnerOrgNo(dto.getOwnerOrgNo());
		this.setOwnerPhone(dto.getOwnerPhone());
		this.setOwnerType(dto.getOwnerType());
		this.setPassenger(dto.getPassenger());
		this.setRegDate(dto.getRegDate());
		this.setRegisterCardNo(dto.getRegisterCardNo());
		this.setSendCardDate(dto.getSendCardDate());
		this.setYearCarefulPeriod(dto.getYearCarefulPeriod());
		this.setStatus(dto.getStatus());
		this.setAcceptedTime(dto.getAcceptedTime());
		this.setAgentName(dto.getAgentName());
		this.setAgentAddress(dto.getAgentAddress());
		this.setAgentOwnerIdCardNo(dto.getAgentOwnerIdCardNo());
		this.setAgentPhone(dto.getAgentPhone());
		this.setMileage(dto.getMileage());
		this.setPrice(dto.getPrice());
		this.setNewAgentAddress(dto.getNewAgentAddress());
		this.setNewAgentName(dto.getNewAgentName());
		this.setNewAgentOwnerIdCardNo(dto.getNewAgentOwnerIdCardNo());
		this.setNewAgentPhone(dto.getNewAgentPhone());
		this.setMailAddress(dto.getMailAddress());
		this.setZipCode(dto.getZipCode());
		this.setGainType(dto.getGainType());
		this.setPaymentPeople(dto.getPaymentPeople());
		this.setMoveOutCity(dto.getMoveOutCity());
		this.setMoveOutProvince(dto.getMoveOutProvince());
		this.setTaxNo(dto.getTaxNo());
		this.setTransferType(dto.getTransferType());
		this.setNewcarOwnerIdCardNo(dto.getNewcarOwnerIdCardNo());

		this.setNewCarOwner(dto.getNewCarOwner());
		this.setNewOwnerAddress(dto.getNewOwnerAddress());
		this.setNewOwnerPhone(dto.getNewOwnerPhone());
		this.setNewOwnerOrgNo(dto.getNewOwnerOrgNo());

		//录入用户ID，会员信息，预售价格
		this.setMemberId(dto.getMemberId());
		this.setInputUserId(dto.getInputUserId());
		this.setPrice(dto.getPrice());
		this.setAmount(dto.getAmount());
		this.setNewOwnerType(dto.getNewOwnerType());
		
		this.setCarOwnerIdCardNoOld(dto.getCarOwnerIdCardNoOld());
		this.setOwnerAddressOld(dto.getOwnerAddressOld());
	}

	
	/**
	 * 
	 * 根据车辆ID解锁超期过期车辆
	 * 
	 * @return
	 * @throws TmsDaoException 
	 */
	public void unchainProxyCarInfoBySerial(String serial,int status,int updateId) throws TmsDaoException
	{
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao.getInstance(TmsDao.TMS_PROXY_CAR_INFO);		
		
		mDao.unchainProxyCarInfoBySerial(serial,status,updateId);
	}
	
	/**
	 * 未受理车辆信息受理更新
	 * 
	 * 状态变为2
	 * 
	 * @return
	 * @throws TmsDaoException 
	 */
	public void updateNCarInfo(ProxyCarInfo entity,int bsflag,String lsSerial) throws TmsDaoException
	{
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao.getInstance(TmsDao.TMS_PROXY_CAR_INFO);	
		ProxyCarInfoDto dto = new ProxyCarInfoDto();
		dto = setDtoFromEntity(dto,entity);
		mDao.updateNCarInfo(dto,bsflag,lsSerial);
		
	}
	/**
	 * 将ENTITY set到DTO中
	 * @return
	 */
	private ProxyCarInfoDto setDtoFromEntity(ProxyCarInfoDto dto,ProxyCarInfo proxyCarInfo)
	{
		dto.setSerial(proxyCarInfo.getSerial());
		dto.setLicensePlate(proxyCarInfo.getLicensePlate());
		dto.setVendorCode(proxyCarInfo.getVendorCode());
		dto.setModelCode(proxyCarInfo.getModelCode());
		dto.setEngine(proxyCarInfo.getEngine());
		dto.setLoadquality(proxyCarInfo.getLoadquality());
		dto.setPassenger(proxyCarInfo.getPassenger());
		dto.setMileage(proxyCarInfo.getMileage());
		dto.setYearCarefulPeriod(proxyCarInfo.getYearCarefulPeriod());
		dto.setJqx(proxyCarInfo.getJqx());
		dto.setRegisterCardNo(proxyCarInfo.getRegisterCardNo());
		dto.setRegDate(proxyCarInfo.getRegDate());
		dto.setSendCardDate(proxyCarInfo.getSendCardDate());
		dto.setCarOwner(proxyCarInfo.getCarOwner());
		dto.setCarOwnerIdCardNo(proxyCarInfo.getCarOwnerIdCardNo());
		dto.setOwnerOrgNo(proxyCarInfo.getOwnerOrgNo());
		dto.setOwnerAddress(proxyCarInfo.getOwnerAddress());
		dto.setOwnerPhone(proxyCarInfo.getOwnerPhone());
		dto.setAgentName(proxyCarInfo.getAgentName());
		dto.setAgentAddress(proxyCarInfo.getAgentAddress());
		dto.setAgentOwnerIdCardNo(proxyCarInfo.getAgentOwnerIdCardNo());
		dto.setAgentPhone(proxyCarInfo.getAgentPhone());
		dto.setPrice(proxyCarInfo.getPrice());
		dto.setVendorId(proxyCarInfo.getVendorId());
		dto.setBrandId(proxyCarInfo.getBrandId());
		dto.setCarStyleId(proxyCarInfo.getCarStyleId());
		dto.setCardType(proxyCarInfo.getCardType());
		dto.setCarType(proxyCarInfo.getCarType());
		dto.setCarUse(proxyCarInfo.getCarUse());
		dto.setColor(proxyCarInfo.getColor());
		dto.setCountryStyle(proxyCarInfo.getCountryStyle());
		dto.setDisplacement(proxyCarInfo.getDisplacement());
		dto.setGearbox(proxyCarInfo.getGearbox());
		dto.setFuelType(proxyCarInfo.getFuelType());
		dto.setOwnerType(proxyCarInfo.getOwnerType());
		dto.setMemberId(proxyCarInfo.getMemberId());
		dto.setVin(proxyCarInfo.getVin());
		dto.setSerial(proxyCarInfo.getSerial());
		dto.setStatus(proxyCarInfo.getStatus());
		dto.setUpdateUserId(proxyCarInfo.getUpdateUserId());

		// 另外添加的部分
		dto.setCompanyContactPerson(proxyCarInfo.getCompanyContactPerson());
		dto.setCarOwnerIdCardNoOld(proxyCarInfo.getCarOwnerIdCardNoOld());
		dto.setOwnerAddressOld(proxyCarInfo.getOwnerAddressOld());
		dto.setMoveOutProvince(proxyCarInfo.getMoveOutProvince());
		dto.setMoveOutCity(proxyCarInfo.getMoveOutCity());
		
		return dto;
 
	}
	
	/**
	 * 已交费修改录入
	 * 
	 * @return
	 * @throws TmsDaoException 
	 */
	public void updatePayedProxyCarInfo(ProxyCarInfo entity) throws TmsDaoException
	{
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao.getInstance(TmsDao.TMS_PROXY_CAR_INFO);	
		ProxyCarInfoDto dto = new ProxyCarInfoDto();
		dto = setPayedDtoFromEntity(dto,entity);
		mDao.updatePayedProxyCarInfo(dto);
	}
	
	/**
	 * 已交费部分
	 * 将entity信息set到dto中
	 * @return
	 */
	public ProxyCarInfoDto setPayedDtoFromEntity(ProxyCarInfoDto dto,ProxyCarInfo entity)
	{
		dto.setSerial(entity.getSerial());//用于标识车辆
		dto.setVendorId(entity.getVendorId());
		dto.setBrandId(entity.getBrandId());
		dto.setCarStyleId(entity.getCarStyleId());
		dto.setDisplacement(entity.getDisplacement());
		dto.setGearbox(entity.getGearbox());
		dto.setLicensePlate(entity.getLicensePlate());
		dto.setVin(entity.getVin());
		dto.setVendorCode(entity.getVendorCode());
		dto.setModelCode(entity.getModelCode());
		dto.setCarType(entity.getCarType());
		dto.setEngine(entity.getEngine());
		dto.setColor(entity.getColor());
		dto.setCountryStyle(entity.getCountryStyle());
		dto.setFuelType(entity.getFuelType());
		dto.setLoadquality(entity.getLoadquality());
		dto.setCardType(entity.getCardType());
		dto.setCarUse(entity.getCarUse());
		dto.setCarOwner(entity.getCarOwner());
		dto.setCarOwnerIdCardNo(entity.getCarOwnerIdCardNo());
		dto.setJqx(entity.getJqx());
		dto.setOwnerAddress(entity.getOwnerAddress());
		dto.setOwnerOrgNo(entity.getOwnerOrgNo());
		dto.setOwnerPhone(entity.getOwnerPhone());
		dto.setOwnerType(entity.getOwnerType());
		dto.setPassenger(entity.getPassenger());
		dto.setRegDate(entity.getRegDate());
		dto.setRegisterCardNo(entity.getRegisterCardNo());
		dto.setSendCardDate(entity.getSendCardDate());
		dto.setYearCarefulPeriod(entity.getYearCarefulPeriod());
		dto.setStatus(entity.getStatus());
		dto.setAcceptedTime(entity.getAcceptedTime());
		dto.setAgentName(entity.getAgentName());
		dto.setAgentAddress(entity.getAgentAddress());
		dto.setAgentOwnerIdCardNo(entity.getAgentOwnerIdCardNo());
		dto.setAgentPhone(entity.getAgentPhone());
		dto.setMileage(entity.getMileage());
		dto.setPrice(entity.getPrice());
		dto.setNewAgentAddress(entity.getNewAgentAddress());
		dto.setNewAgentName(entity.getNewAgentName());
		dto.setNewAgentOwnerIdCardNo(entity.getNewAgentOwnerIdCardNo());
		dto.setNewAgentPhone(entity.getNewAgentPhone());
		dto.setMailAddress(entity.getMailAddress());
		dto.setZipCode(entity.getZipCode());
		dto.setGainType(entity.getGainType());
		dto.setPaymentPeople(entity.getPaymentPeople());
		dto.setMoveOutCity(entity.getMoveOutCity());
		dto.setMoveOutProvince(entity.getMoveOutProvince());
		dto.setTaxNo(entity.getTaxNo());
		dto.setTransferType(entity.getTransferType());
		dto.setNewcarOwnerIdCardNo(entity.getNewcarOwnerIdCardNo());

		dto.setNewCarOwner(entity.getNewCarOwner());
		dto.setNewOwnerAddress(entity.getNewOwnerAddress());
		dto.setNewOwnerPhone(entity.getNewOwnerPhone());
		dto.setNewOwnerOrgNo(entity.getNewOwnerOrgNo());

		//录入用户ID，会员信息，预售价格
//		dto.setMemberId(entity.getMemberId());
		dto.setInputUserId(entity.getInputUserId());
		dto.setPrice(entity.getPrice());
		dto.setAmount(entity.getAmount());
		dto.setNewOwnerType(entity.getNewOwnerType());
		
		dto.setCarOwnerIdCardNoOld(entity.getCarOwnerIdCardNoOld());
		dto.setOwnerAddressOld(entity.getOwnerAddressOld());
		
		return dto;
	}
	
	
	/**
	 * 或许更新时间
	 * 
	 * @return
	 * @throws TmsDaoException 
	 */
	public int findUpdateTimeBySerial(String serial,String inTime) throws TmsDaoException
	{
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao.getInstance(TmsDao.TMS_PROXY_CAR_INFO);	
		
		int updateTime = 0;
		
		updateTime = mDao.findUpdateTimeBySerial(serial,inTime);
		
		return updateTime;
	}
	/**
	 * 
	 * 根据车辆ID和状态更新车辆装有唉
	 * @return
	 * @throws TmsDaoException 
	 */
	public void updatePayedStatusBySerial(String serial,int status,int userId) throws TmsDaoException
	{
		ProxyCarInfoDao mDao = (ProxyCarInfoDao) TmsDao.getInstance(TmsDao.TMS_PROXY_CAR_INFO);	
		
		mDao.updatePayedStatusBySerial(serial,status,userId);
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public String getVin() {
		return vin;
	}

	public void setVin(String vin) {
		this.vin = vin;
	}

	public String getEngine() {
		return engine;
	}

	public void setEngine(String engine) {
		this.engine = engine;
	}

	public String getLicensePlate() {
		return licensePlate;
	}

	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getProxyPrice() {
		return proxyPrice;
	}

	public void setProxyPrice(int proxyPrice) {
		this.proxyPrice = proxyPrice;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public String getVendorCode() {
		return vendorCode;
	}

	public void setVendorCode(String vendorCode) {
		this.vendorCode = vendorCode;
	}

	public String getModelCode() {
		return modelCode;
	}

	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}

	public String getRegDate() {
		return regDate;
	}

	public void setRegDate(String regDate) {
		this.regDate = regDate;
	}

	public String getYearCarefulPeriod() {
		return yearCarefulPeriod;
	}

	public void setYearCarefulPeriod(String yearCarefulPeriod) {
		this.yearCarefulPeriod = yearCarefulPeriod;
	}

	public int getDisplacement() {
		return displacement;
	}

	public void setDisplacement(int displacement) {
		this.displacement = displacement;
	}

	public String getJqx() {
		return jqx;
	}

	public void setJqx(String jqx) {
		this.jqx = jqx;
	}

	public int getCarUse() {
		return carUse;
	}

	public void setCarUse(int carUse) {
		this.carUse = carUse;
	}

	public int getCarType() {
		return carType;
	}

	public void setCarType(int carType) {
		this.carType = carType;
	}

	public int getAttribute() {
		return attribute;
	}

	public void setAttribute(int attribute) {
		this.attribute = attribute;
	}

	public int getGearbox() {
		return gearbox;
	}

	public void setGearbox(int gearbox) {
		this.gearbox = gearbox;
	}

	public int getMileage() {
		return mileage;
	}

	public void setMileage(int mileage) {
		this.mileage = mileage;
	}

	public String getSendCardDate() {
		return sendCardDate;
	}

	public void setSendCardDate(String sendCardDate) {
		this.sendCardDate = sendCardDate;
	}

	public int getCardType() {
		return cardType;
	}

	public void setCardType(int cardType) {
		this.cardType = cardType;
	}

	public String getRegisterCardNo() {
		return registerCardNo;
	}

	public void setRegisterCardNo(String registerCardNo) {
		this.registerCardNo = registerCardNo;
	}

	public int getCountryStyle() {
		return countryStyle;
	}

	public void setCountryStyle(int countryStyle) {
		this.countryStyle = countryStyle;
	}

	public int getFuelType() {
		return fuelType;
	}

	public void setFuelType(int fuelType) {
		this.fuelType = fuelType;
	}

	public String getCompanyContactPerson() {
		return companyContactPerson;
	}

	public void setCompanyContactPerson(String companyContactPerson) {
		this.companyContactPerson = companyContactPerson;
	}

	public String getCarOwnerIdCardNo() {
		return carOwnerIdCardNo;
	}

	public void setCarOwnerIdCardNo(String carOwnerIdCardNo) {
		this.carOwnerIdCardNo = carOwnerIdCardNo;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getCarStyleId() {
		return carStyleId;
	}

	public void setCarStyleId(String carStyleId) {
		this.carStyleId = carStyleId;
	}

	public String getVendorId() {
		return vendorId;
	}

	public void setVendorId(String vendorId) {
		this.vendorId = vendorId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public int getLoadquality() {
		return loadquality;
	}

	public void setLoadquality(int loadquality) {
		this.loadquality = loadquality;
	}

	public int getPassenger() {
		return passenger;
	}

	public void setPassenger(int passenger) {
		this.passenger = passenger;
	}

	public int getOwnerType() {
		return ownerType;
	}

	public void setOwnerType(int ownerType) {
		this.ownerType = ownerType;
	}

	public String getOwnerPhone() {
		return ownerPhone;
	}

	public void setOwnerPhone(String ownerPhone) {
		this.ownerPhone = ownerPhone;
	}

	public String getOwnerAddress() {
		return ownerAddress;
	}

	public void setOwnerAddress(String ownerAddress) {
		this.ownerAddress = ownerAddress;
	}

	public String getOwnerOrgNo() {
		return ownerOrgNo;
	}

	public void setOwnerOrgNo(String ownerOrgNo) {
		this.ownerOrgNo = ownerOrgNo;
	}

	public String getCarOwner() {
		return carOwner;
	}

	public void setCarOwner(String carOwner) {
		this.carOwner = carOwner;
	}

	public String getCarOwnerIdCardNoOld() {
		return carOwnerIdCardNoOld;
	}

	public void setCarOwnerIdCardNoOld(String carOwnerIdCardNoOld) {
		this.carOwnerIdCardNoOld = carOwnerIdCardNoOld;
	}

	public String getOwnerAddressOld() {
		return ownerAddressOld;
	}

	public void setOwnerAddressOld(String ownerAddressOld) {
		this.ownerAddressOld = ownerAddressOld;
	}

	public int getNewOwnerType() {
		return newOwnerType;
	}

	public void setNewOwnerType(int newOwnerType) {
		this.newOwnerType = newOwnerType;
	}

	public String getNewOwnerPhone() {
		return newOwnerPhone;
	}

	public void setNewOwnerPhone(String newOwnerPhone) {
		this.newOwnerPhone = newOwnerPhone;
	}

	public String getNewOwnerAddress() {
		return newOwnerAddress;
	}

	public void setNewOwnerAddress(String newOwnerAddress) {
		this.newOwnerAddress = newOwnerAddress;
	}

	public String getNewOwnerOrgNo() {
		return newOwnerOrgNo;
	}

	public void setNewOwnerOrgNo(String newOwnerOrgNo) {
		this.newOwnerOrgNo = newOwnerOrgNo;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getAgentOwnerIdCardNo() {
		return agentOwnerIdCardNo;
	}

	public void setAgentOwnerIdCardNo(String agentOwnerIdCardNo) {
		this.agentOwnerIdCardNo = agentOwnerIdCardNo;
	}

	public String getAgentAddress() {
		return agentAddress;
	}

	public void setAgentAddress(String agentAddress) {
		this.agentAddress = agentAddress;
	}

	public String getAgentPhone() {
		return agentPhone;
	}

	public void setAgentPhone(String agentPhone) {
		this.agentPhone = agentPhone;
	}

	public int getStatus() {
		return status;
	}

	public int getInsertUserId() {
		return insertUserId;
	}

	public void setInsertUserId(int insertUserId) {
		this.insertUserId = insertUserId;
	}

	public Date getAcceptedTime() {
		return acceptedTime;
	}

	public void setAcceptedTime(Date acceptedTime) {
		this.acceptedTime = acceptedTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(int updateUserId) {
		this.updateUserId = updateUserId;
	}

	public String getMoveOutProvince() {
		return moveOutProvince;
	}

	public void setMoveOutProvince(String moveOutProvince) {
		this.moveOutProvince = moveOutProvince;
	}

	public String getMoveOutCity() {
		return moveOutCity;
	}

	public void setMoveOutCity(String moveOutCity) {
		this.moveOutCity = moveOutCity;
	}

	public String getNewCarOwner() {
		return newCarOwner;
	}

	public void setNewCarOwner(String newCarOwner) {
		this.newCarOwner = newCarOwner;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public int getCssFlag() {
		return cssFlag;
	}

	public void setCssFlag(int cssFlag) {
		this.cssFlag = cssFlag;
	}

	public int getListStatus() {
		return listStatus;
	}

	public void setListStatus(int listStatus) {
		this.listStatus = listStatus;
	}

	public String getCarTypeS() {
		return carTypeS;
	}

	public void setCarTypeS(String carTypeS) {
		this.carTypeS = carTypeS;
	}

	public String getStatusS() {
		return statusS;
	}

	public void setStatusS(String statusS) {
		this.statusS = statusS;
	}

	public int getTransferType() {
		return transferType;
	}

	public void setTransferType(int transferType) {
		this.transferType = transferType;
	}

	public String getCarMarketIn() {
		return carMarketIn;
	}

	public void setCarMarketIn(String carMarketIn) {
		this.carMarketIn = carMarketIn;
	}

	public String getTaxNo() {
		return taxNo;
	}

	public void setTaxNo(String taxNo) {
		this.taxNo = taxNo;
	}

	public String getNewAgentName() {
		return newAgentName;
	}

	public void setNewAgentName(String newAgentName) {
		this.newAgentName = newAgentName;
	}

	public String getNewAgentOwnerIdCardNo() {
		return newAgentOwnerIdCardNo;
	}

	public void setNewAgentOwnerIdCardNo(String newAgentOwnerIdCardNo) {
		this.newAgentOwnerIdCardNo = newAgentOwnerIdCardNo;
	}

	public String getNewAgentAddress() {
		return newAgentAddress;
	}

	public void setNewAgentAddress(String newAgentAddress) {
		this.newAgentAddress = newAgentAddress;
	}

	public String getNewAgentPhone() {
		return newAgentPhone;
	}

	public void setNewAgentPhone(String newAgentPhone) {
		this.newAgentPhone = newAgentPhone;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getMailAddress() {
		return mailAddress;
	}

	public void setMailAddress(String mailAddress) {
		this.mailAddress = mailAddress;
	}

	public String getPaymentPeople() {
		return paymentPeople;
	}

	public void setPaymentPeople(String paymentPeople) {
		this.paymentPeople = paymentPeople;
	}

	public int getGainType() {
		return gainType;
	}

	public void setGainType(int gainType) {
		this.gainType = gainType;
	}

	public String getNewcarOwnerIdCardNo() {
		return newcarOwnerIdCardNo;
	}

	public void setNewcarOwnerIdCardNo(String newcarOwnerIdCardNo) {
		this.newcarOwnerIdCardNo = newcarOwnerIdCardNo;
	}

	public int getInputUserId() {
		return inputUserId;
	}

	public void setInputUserId(int inputUserId) {
		this.inputUserId = inputUserId;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

}
